$OpenBSD: patch-src_core_icb-servers_c,v 1.3 2011/06/14 10:22:16 sthen Exp $

Break lines longer than 255 chars

--- src/core/icb-servers.c.orig	Tue May 28 17:56:34 2002
+++ src/core/icb-servers.c	Tue Jun 14 10:31:10 2011
@@ -39,6 +39,9 @@ SERVER_REC *icb_server_init_connect(SERVER_CONNECT_REC
 	server = g_new0(ICB_SERVER_REC, 1);
 	server->chat_type = ICB_PROTOCOL;
 
+	server->silentwho = FALSE;
+	server->updatenicks = FALSE;
+
         server->recvbuf_size = 256;
 	server->recvbuf = g_malloc(server->recvbuf_size);
 
@@ -93,17 +96,17 @@ static void channels_join(SERVER_REC *server, const ch
 	icb_change_channel(ICB_SERVER(server), channel, automatic);
 }
 
-static int isnickflag_func(char flag)
+static int isnickflag_func(SERVER_REC *server, char flag)
 {
         return flag == '*';
 }
 
 static int ischannel_func(SERVER_REC *server, const char *data)
 {
-        return g_strcasecmp(ICB_SERVER(server)->group->name, data) == 0;
+        return g_ascii_strcasecmp(ICB_SERVER(server)->group->name, data) == 0;
 }
 
-static const char *get_nick_flags(void)
+static const char *get_nick_flags(SERVER_REC *server)
 {
 	static const char flags[] = { '*', '\0', '\0' };
         return flags;
@@ -113,7 +116,6 @@ static void send_message(SERVER_REC *server, const cha
 			 const char *msg, int target_type)
 {
 	ICB_SERVER_REC *icbserver;
-        char *str;
 
         icbserver = ICB_SERVER(server);
 	g_return_if_fail(server != NULL);
@@ -125,9 +127,7 @@ static void send_message(SERVER_REC *server, const cha
                 icb_send_open_msg(icbserver, msg);
 	} else {
 		/* private message */
-                str = g_strconcat(target, " ", msg, NULL);
-		icb_command(icbserver, "m", str, NULL);
-                g_free(str);
+		icb_send_private_msg(icbserver, target, msg);
 	}
 }
 
